package com.zsrt.java.day20170113.lh.daily;

import java.math.BigDecimal;
import java.math.RoundingMode;

public class Student {

	
	private int card;
	
	private String name;
	public int getCard() {
		return card;
	}


	public void setCard(int card) {
		this.card = card;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public String getPhone() {
		return phone;
	}


	public void setPhone(String phone) {
		this.phone = phone;
	}


	private String phone;
	
	
	public void sang(){
		System.out.println("国歌。。");
	}
	
	private void finfGF(){
		System.out.println("交女朋友");
	}
	
	private double add(double x,double y){
		
		BigDecimal xx =new BigDecimal(x);
		BigDecimal yy =new BigDecimal(y);
	
		BigDecimal jg=xx.add(yy).setScale(2, RoundingMode.HALF_UP);
		return jg.doubleValue();
	}
	
	private int add(int x,int y){
		int sum=x+y;
		return sum;
	}


	@Override
	public String toString() {
		return "Student [card=" + card + ", name=" + name + ", phone=" + phone + "]";
	}


	public Student(int card, String name, String phone) {
		this.card = card;
		this.name = name;
		this.phone = phone;
	}


	public Student() {
	}
	
	
	
	
}
